package com.wing.product.model.response;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wing.bill.model.enums.OrderSourceEnum;
import com.wing.bill.model.enums.OrderStatusEnum;
import com.wing.bill.model.enums.ShipmentOrderStatusEnum;
import com.wing.mybatis.common.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 托管订单（入库）
 */
@Schema(description="托管订单（入库）")
@Data
@EqualsAndHashCode(callSuper=true)
@TableName(value = "warehouse_shipment_order")
public class WarehouseShipmentOrderVO extends BaseEntity<WarehouseShipmentOrderVO> {
    private String shipmentOrderCode;
    private Integer source;
    private String sourceDesc;
    public void setSource(Integer source){
        this.source = source;
        this.sourceDesc = OrderSourceEnum.getDescByCode(source);
    }
    public void setShipmentOrderStatus(String shipmentOrderStatus){
        this.shipmentOrderStatus = shipmentOrderStatus;
        this.shipmentOrderStatusDesc = ShipmentOrderStatusEnum.getDescByCode(shipmentOrderStatus);
    }

    private String orderCode;
    private int totalQuantity;
    private String customerId;
    private String warehouseUser;
    private double totalWeight;
    private String waybill;
    private String plateNo;
    private String shipmentOrderStatus;
    private String shipmentOrderStatusDesc;

    private Integer orderId;
    private Long transportCompanyId;
    private String transportModeId;
    private Long vehicleId;
    private Long driverId;
    private String driverName;
    private String driverPhone;

    private String contactName;
    private String code;
    private Double remainder;
}